package com.fd.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor  // 无参构造器
@AllArgsConstructor //所有参数构造器,一般和@Builder搭配使用链式编程
@Builder
public class Student {
    private Integer sId;
    private String name;
    private Integer age;
    private String gender;
    private String address;
    private Integer classes;

    public Student(String name, Integer age, String gender, String address, Integer classes) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.address = address;
        this.classes = classes;
    }


    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }
}
